<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform" version="1.0">
 
<xsl:output method="html" indent="yes"/>
 
<xsl:template match="/">
  <html>
  <body>
   <xsl:apply-templates/>
  </body>
  </html>
</xsl:template>
 
<xsl:template match="lbtr_OperacionesOtorgadasResponse">
  <table border="1" width="50%">
  	<tr bgcolor="#848484">
  	  <th width="10">#</th>
  	  <th width="10">Numero Ref Origen</th>
  	  <th width="10">Numero Ref LBTR</th>
  	  <th width="10">Codigo Moneda</th>
  	  <th width="10">Banco Destino</th>
  	  <th width="10">Monto</th>
  	</tr>
    <xsl:for-each select="operacion">
      <tr>
      	<td align="center">
          <i><xsl:value-of select="position()"/></i>
        </td>
      	<xsl:choose>
      	  <xsl:when test="not(numRefOrigen)">
      		<td><b><font color="red">TAG NO EXISTE</font></b></td>  
      	  </xsl:when>
      	  <xsl:otherwise>
      	    <td><xsl:value-of select="numRefOrigen"/></td>
      	  </xsl:otherwise>
      	</xsl:choose>
        <td>
          <xsl:value-of select="numRefLBTR"/>
        </td>
        <td>
          <xsl:value-of select="codMoneda"/>
        </td>
        <td>
          <xsl:value-of select="codBancoDestino"/>
        </td>
        <td>
          <xsl:value-of select="montoOperacion"/>
        </td>
      </tr>
    </xsl:for-each>
  </table>
</xsl:template>
</xsl:stylesheet>